
const dataCount:any = {
    state:{
        BigCategory: []
    },
    getters:{
        BigCategory: (state:any) => state.BigCategory
    },
    mutations:{
        SET_BIG_CATEGORY_INFO(state:any,info: any): void {
            state.BigCategory = info;
        }
    },
    actions:{
        saveBigCategoryInfo({commit},info: any) {
            commit('SET_BIG_CATEGORY_INFO',info.map(item=>({
                ...item,
                value: item.id,
                label: item.name
            })))
        }
    }
}

export default dataCount
